<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		<!-- 收集参数 -->
		function show(a,b,...args){
			console.log(a,b,...args);  //1,2,3,4,5,6
			console.log(...args);  //3,4,5,6
		}
		show(1,2,3,4,5,6);
		// 展开数组
		var arr = [1,2,3,4,999];
		console.log(...arr);  //1 2 3 4 999
		// 默认参数的使用
		function mo(a,b=2,c=12){
			console.log(a,b,c);
		} 
		mo(33);  //33 2 12
		</script>
	</head>
	<body>
	</body>
</html>
